package com.wen.statistics.api;

import com.wen.commonutils.ResultEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author：Win
 * @Date: 2021/6/22 17:28
 * @Description: 调用service-ucenter模块中的方法
 */
@FeignClient("service-ucenter")
@Component
public interface UcenterApi {
    /**
     * 统计某一天的注册人数
     *
     * @param day target day
     * @return result of operation
     */
    @GetMapping("/edu/ucenter/service/member/countRegister/{day}")
    ResultEntity countRegister(@PathVariable("day") String day);
}
